import homePageRoutes from "./homePageRoutes"
//系统路由
const routes = [
  {
    name: "layout",
    path: "/",
    component: () => import("@/layout/index.vue"),
    redirect: "dashboard",
    children: homePageRoutes
  },
  {
    name: "login",
    path: "/login",
    component: () => import("@/views/login.vue"),
    meta: { title: "登录" }
  },
  {
    path: "/:pathMatch(.*)*",
    hidden: true,
    meta: { title: "访问的页面不存在" },
    component: () => import("@/layout/404.vue")
  },
  {
    name: "cubeEditor",
    path: "/cubeeditor",
    component: () => import("@/views/datasource/cube/editor.vue"),
    meta: { title: "数据集编辑", hidden: true, layout: false }
  },
  {
    name: "visualEditor",
    path: "/visualeditor",
    component: () => import("@/views/visual/screen/editor.vue"),
    meta: { title: "大屏编辑", hidden: true, layout: false }
  },
  {
    name: "visual",
    path: "/visual",
    component: () => import("@/layout/index.vue"),
    children: [
      {
        name: "visualPrview",
        path: "/visual/preview",
        meta: { title: "预览", icon: "icon-home", hidden: false },
        component: () => import("@/views/visual/visual/prview.vue")
      }
    ]
  }
]

export default routes
